<?php
	if($_SERVER["REQUEST_METHOD"]=='POST') {
		$detail	= $_POST['detail'];
		$sql	= "UPDATE `tbl_contact_address` SET `email` = '$email'  WHERE  `contact_id` = '1' LIMIT 1;";
		mysql_query($sql);
		redirect('../');
		exit;
	}

	$sql = "SELECT `email` FROM `tbl_contact_address` WHERE `contact_id` = '1' LIMIT 1";
	$query = mysql_query($sql) or die($sql);
	while($result = mysql_fetch_assoc($query)) {
		$email			= $result['email'];
	}
	mysql_free_result($query);
?>